package com.itboye.ihomebank.activity.myzhujia;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.base.BaseOtherActivity;
import com.itboye.ihomebank.custom.LoweLinearLayout;


/**
 * A login screen that offers login via email/password.
 */
public class RepairJiaDianActivity extends BaseOtherActivity {
    View v_statusbar;
    ImageView close_icon;
    TextView add_shap_title_tv;
    LoweLinearLayout bingxiang, dianshiji, kongtiao, reshuiqi, xiyiji, youyanji, qita;

    int type = 2;

    String repair_id;

    @Override
    protected int layout_id() {
        return R.layout.activity_repair_jiadian;
    }

    @Override
    protected void onInitController() {

    }

    @Override
    protected void onInit() {
        setStatusBarHeight(v_statusbar);
        type = getIntent().getIntExtra("type", 2);
        add_shap_title_tv.setText("家电维修");
    }

    @Override
    protected void onReadIntent(Bundle bundle) {

    }

    @Override
    public void onClick(View v) {
        Intent intent = null;
        switch (v.getId()) {
            case R.id.close_icon:
                finish();
                break;
            case R.id.bingxiang:
                intent = new Intent(this, ActivityHomeRepair.class);
                intent.putExtra("title", "家电维修");
                intent.putExtra("repair_id", "6359");
                intent.putExtra("type", type);
                startActivity(intent);
                break;
            case R.id.dianshiji:
                intent = new Intent(this, ActivityHomeRepair.class);
                intent.putExtra("title", "家电维修");
                intent.putExtra("repair_id", "6360");
                intent.putExtra("type", type);
                startActivity(intent);
                break;
            case R.id.kongtiao:
                intent = new Intent(this, ActivityHomeRepair.class);
                intent.putExtra("title", "家电维修");
                intent.putExtra("repair_id", "6361");
                intent.putExtra("type", type);
                startActivity(intent);
                break;
            case R.id.reshuiqi:
                intent = new Intent(this, ActivityHomeRepair.class);
                intent.putExtra("title", "家电维修");
                intent.putExtra("repair_id", "6362");
                intent.putExtra("type", type);
                startActivity(intent);
                break;
            case R.id.xiyiji:
                intent = new Intent(this, ActivityHomeRepair.class);
                intent.putExtra("title", "家电维修");
                intent.putExtra("repair_id", "6363");
                intent.putExtra("type", type);
                startActivity(intent);
                break;
            case R.id.youyanji:
                intent = new Intent(this, ActivityHomeRepair.class);
                intent.putExtra("title", "家电维修");
                intent.putExtra("repair_id", "6364");
                intent.putExtra("type", type);
                startActivity(intent);
                break;
            case R.id.qita:
                intent = new Intent(this, ActivityHomeRepair.class);
                intent.putExtra("title", "家电维修");
                intent.putExtra("repair_id", "6365");
                intent.putExtra("type", type);
                startActivity(intent);
                break;

        }
    }
}

